.PHONY:clean all
GCC = gcc
ARM_GCC = arm-linux-gnueabihf-gcc

CFLAGS = -g -I /usr/include/libxml2
LDFLAGS = -lxml2 -lpthread

all:
	${GCC}  -o server_udp_pc server.c ${CFLAGS} ${LDFLAGS}
#	${ARM_GCC} server.c -o server_udp_arm
	${GCC}  -o client_udp_pc client.c ${CFLAGS} ${LDFLAGS}
#	${ARM_GCC} client.c -o client_udp_arm
	${GCC}  -o io1 io1.c ${CFLAGS} ${LDFLAGS}
	${GCC}  -o testWriter testWriter.c ${CFLAGS} ${LDFLAGS}
	${GCC}  -o xpath2 xpath2.c ${CFLAGS} ${LDFLAGS}
	${GCC}  -o xpath xpath.c ${CFLAGS} ${LDFLAGS}
	${GCC}  -o time_test time_test.c ${CFLAGS} ${LDFLAGS}
	${GCC}  -o xmlelmprint xmlelmprint.c ${CFLAGS} ${LDFLAGS}
clean:
	rm -f *.o server_udp* client_udp* io1 testWriter xpath xpath2 time_test xmlelmprint